package com.yonyou.cms.epc.mapper.graphic;

import com.yonyou.cms.epc.client.entity.graphic.GradeInfoPO;
import com.yonyou.cms.epc.client.entity.graphic.GraphicAssemblyInfoPO;
import com.yonyou.cms.epc.client.entity.graphic.GraphicInfoPO;
import com.yonyou.cyx.framework.dao.base.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jxy
 * @since 2022-06-08
 */
public interface GradeInfoMapper extends SuperMapper<GradeInfoPO> {

    int updateByPrimaryKeySelective(GradeInfoPO entity);
    List<GraphicInfoPO> queryModel(@Param("params")Map<String, Object> map);
    List<GraphicInfoPO> querySystem(@Param("params")Map<String, Object> map);
    List<GraphicInfoPO> queryGraphicInFo(@Param("params")Map<String, Object> map);
    List<GraphicAssemblyInfoPO> queryGraphicAssemblyInFo(@Param("params")Map<String,Object> map);
    List<GraphicAssemblyInfoPO> partsList(GraphicAssemblyInfoPO graphicAssemblyInfoPo);
    int insertAndUpdate(@Param("list")List<GradeInfoPO> ids);
    int delGradeInFo(@Param("integer") Integer integer);
    List<GraphicAssemblyInfoPO> queryPartsInFo(@Param("graphicCode")String graphicCode,@Param("graphicId")String graphicId);
    boolean deleteAssemblyId(Integer id);
}
